﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace F2S.LINQ2LinkedIn.Model
{
    [XmlRoot("recommendation")]
    public class Recommendation
    {
        [XmlElement("id")]
        public long ID { get; set; }

        [XmlElement("recommendation-type")]
        public RecommendationType RecommendationType { get; set; }

        [XmlElement("recommender")]
        public Person Recommender { get; set; }

        [XmlElement("web-url")]
        public string WebUrl { get; set; }
    }

    /*
          <recommendation>
            <id>505123291</id>
            <recommendation-type>
              <code>colleague</code>
            </recommendation-type>
            <recommender>
              <id>w9DHFCoH2F</id>
              <first-name>Diana</first-name>
              <last-name>Skubiak</last-name>
              <headline>Talent Acquisition Strategist</headline>
              <picture-url>http://m.c.lnkd.licdn.com/mpr/mprx/0_TLYPQpmy4ecsB8eqThShQxyA4wrNB8dq_TE2Qxj8FDXkeXONDimxH0Wm9QKwqbH486ySW4iWqmJO</picture-url>
              <api-standard-profile-request>
                <url>http://api.linkedin.com/v1/people/w9DHFCoH2F</url>
                <headers total="1">
                  <http-header>
                    <name>x-li-auth-token</name>
                    <value>name:zB4B</value>
                  </http-header>
                </headers>
              </api-standard-profile-request>
              <site-standard-profile-request>
                <url>http://www.linkedin.com/profile/view?id=5826928&amp;authType=name&amp;authToken=zB4B&amp;trk=api*a3135321*s3210031*</url>
              </site-standard-profile-request>
            </recommender>
            <web-url>http://www.linkedin.com/profile?viewRecs=&amp;key=5826928</web-url>
          </recommendation>
*/
}
